Render {embed} for each entry in {exp:weblog:entries} loop
Posted
by eyelidlessness
on Stack Overflow
See other posts from Stack Overflow
or by eyelidlessness
Published on 2010-03-12T22:30:51Z
Indexed on
2010/03/12
22:37 UTC
Read the original article
Hit count: 255
expressionengine
|expression-engine
{exp:weblog:entries [args]}
[content]
{embed="path/to/sub-template" [args]}
{/exp:weblog:entries}
The sub-template only renders for the first entry, and the {embed}
template tag is swallowed for all subsequent entries. Is there a way to make it render the sub-template for each iteration?
Edit: stranger yet, if caching is enabled for the sub-template, it renders for each iteration—but, of course, the arguments on the embed tag aren't passed to subsequent iterations, as the sub-template is cached.
© Stack Overflow or respective owner